class AddTypeToUsers < ActiveRecord::Migration[5.2]
  def change
    change_table :users do |t|
      t.string :type, null: false
      t.index :type
      t.index [:type, :id]
    end
  end
end
